<?php

namespace app\flow\controller;

use Controller;

class flowControl extends Controller
{
    function index()
    {

    }

    function getxml()
    {
        $xml = <<<xml
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:process id="Process_1" isExecutable="false">
    <bpmn2:startEvent id="StartEvent_1" name="开始">
      <bpmn2:outgoing>SequenceFlow_130bcgw</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:endEvent id="EndEvent_0taptws" name="完成">
      <bpmn2:incoming>SequenceFlow_1q2q3hk</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_1q2q3hk" name="存档" sourceRef="Task_1w00t0f" targetRef="EndEvent_0taptws" />
    <bpmn2:sequenceFlow id="SequenceFlow_1q728r3" name="大于1天" sourceRef="ExclusiveGateway_03e5pyg" targetRef="Task_1ykn41n" />
    <bpmn2:sequenceFlow id="SequenceFlow_15ogowi" name="同意" sourceRef="Task_1ykn41n" targetRef="Task_1w00t0f" />
    <bpmn2:sequenceFlow id="SequenceFlow_0kdmyf8" name="不超过1天" sourceRef="ExclusiveGateway_03e5pyg" targetRef="Task_1w00t0f" />
    <bpmn2:sequenceFlow id="SequenceFlow_1oxxpj0" name="同意" sourceRef="Task_1x7p0wj" targetRef="ExclusiveGateway_03e5pyg" />
    <bpmn2:sequenceFlow id="SequenceFlow_130bcgw" sourceRef="StartEvent_1" targetRef="Task_062ibg5" />
    <bpmn2:sequenceFlow id="SequenceFlow_1vxpno6" name="初次提交" sourceRef="Task_062ibg5" targetRef="Task_1x7p0wj" />
    <bpmn2:task id="Task_062ibg5" name="提交请假条申请">
      <bpmn2:incoming>SequenceFlow_130bcgw</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1vxpno6</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:task id="Task_1x7p0wj" name="直接上级经理审批">
      <bpmn2:incoming>SequenceFlow_1vxpno6</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1oxxpj0</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:task id="Task_1ykn41n" name="总经理审批">
      <bpmn2:incoming>SequenceFlow_1q728r3</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_15ogowi</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:task id="Task_1w00t0f" name="人事行政部存档">
      <bpmn2:incoming>SequenceFlow_15ogowi</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_0kdmyf8</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1q2q3hk</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:complexGateway id="ExclusiveGateway_03e5pyg" name="判断请假天数">
      <bpmn2:incoming>SequenceFlow_1oxxpj0</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_1q728r3</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_0kdmyf8</bpmn2:outgoing>
    </bpmn2:complexGateway>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="254" y="14" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="262" y="24" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0taptws_di" bpmnElement="EndEvent_0taptws">
        <dc:Bounds x="254" y="577" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="262" y="591" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1q2q3hk_di" bpmnElement="SequenceFlow_1q2q3hk">
        <di:waypoint x="272" y="523" />
        <di:waypoint x="272" y="577" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="280" y="543" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1q728r3_di" bpmnElement="SequenceFlow_1q728r3">
        <di:waypoint x="272" y="327" />
        <di:waypoint x="272" y="363" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="277" y="334" width="40" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_15ogowi_di" bpmnElement="SequenceFlow_15ogowi">
        <di:waypoint x="272" y="423" />
        <di:waypoint x="272" y="463" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="276" y="440" width="23" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0kdmyf8_di" bpmnElement="SequenceFlow_0kdmyf8">
        <di:waypoint x="297" y="302" />
        <di:waypoint x="383" y="302" />
        <di:waypoint x="383" y="493" />
        <di:waypoint x="332" y="493" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="392" y="386" width="51" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1oxxpj0_di" bpmnElement="SequenceFlow_1oxxpj0">
        <di:waypoint x="272" y="230" />
        <di:waypoint x="272" y="277" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="276" y="251" width="23" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_130bcgw_di" bpmnElement="SequenceFlow_130bcgw">
        <di:waypoint x="272" y="50" />
        <di:waypoint x="272" y="70" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1vxpno6_di" bpmnElement="SequenceFlow_1vxpno6">
        <di:waypoint x="272" y="130" />
        <di:waypoint x="272" y="170" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="276" y="144" width="44" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Task_19oo3pw_di" bpmnElement="Task_062ibg5">
        <dc:Bounds x="212" y="70" width="120" height="60" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_0zii5gz_di" bpmnElement="Task_1x7p0wj">
        <dc:Bounds x="212" y="170" width="120" height="60" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1hfbbcb_di" bpmnElement="Task_1ykn41n">
        <dc:Bounds x="212" y="363" width="120" height="60" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_16x2jec_di" bpmnElement="Task_1w00t0f">
        <dc:Bounds x="212" y="463" width="120" height="60" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ComplexGateway_0hyyazg_di" bpmnElement="ExclusiveGateway_03e5pyg">
        <dc:Bounds x="247" y="277" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="180" y="295" width="67" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
xml;
        return $this->ok(['xmlTxt' => $xml]);
    }
}